gdk: Drop GdkPoint from the api
authorMatthias Clasen <mclasen@redhat.com>
Thu, 29 Oct 2020 17:06:08 +0000 (13:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 29 Oct 2020 18:23:46 +0000 (14:23 -0400)
This typedef was not used in any public APIs, and is
only used in the MacOS backend. It is not worth preserving
as public API, move it to the only user.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkrectangle.c
gdk/gdktypes.h
gdk/macos/GdkMacosWindow.c
gdk/macos/edgesnapping.h
gdk/macos/gdkmacosutils-private.h

index ac187474cf6fdf9008064cde3dd91fb93735911c..efbc18fc5b5bdc5b7b25b28e0a8107c718a9448d 100644 (file)
@@ -303,11 +303,8 @@ gdk_cairo_draw_from_gl
 </SECTION>
 
 <SECTION>
-<TITLE>Points, Rectangles and Regions</TITLE>
+<TITLE>Rectangles and Regions</TITLE>
 <FILE>regions</FILE>
-GdkPoint
-
-<SUBSECTION>
 GdkRectangle
 gdk_rectangle_intersect
 gdk_rectangle_union
index edae51062581e819a42c7758e58d563c63585a1c..8043716044873df8a7ae4d653f992ec07d8717bc 100644 (file)
 
 /**
  * SECTION:regions
- * @Short_description: Simple graphical data types
- * @Title: Points and Rectangles
+ * @Short_description: Simple graphical data type
+ * @Title: GdkRectangle
  *
- * GDK provides the #GdkPoint and #GdkRectangle data types for representing pixels
- * and sets of pixels on the screen. Together with Cairo’s #cairo_region_t data
- * type, they make up the central types for representing graphical data.
- *
- * A #GdkPoint represents an x and y coordinate of a point.
+ * GDK provides a #GdkRectangle data type for representing rectangles.
+ * Together with Cairo’s #cairo_region_t data type, these are the central
+ * types for representing sets of pixels.
  *
  * A #GdkRectangle represents the position and size of a rectangle.
  * The intersection of two rectangles can be computed with
  * gdk_rectangle_intersect(). To find the union of two rectangles use
  * gdk_rectangle_union().
  *
- * #cairo_region_t is usually used for managing clipping of graphical operations.
+ * #cairo_region_t is usually used for managing clipping of graphical
+ * operations.
+ *
+ * The graphene library has a number of other data types for regions and
+ * volumes in 2D and 3D.
  */
 
 
index 0a0068e181aa23028b2228b840f28483ca910a78..da12f125bc17e2275ae05538823f70efd7bcfc20 100644 (file)
@@ -53,20 +53,6 @@ G_BEGIN_DECLS
  */
 #define GDK_CURRENT_TIME     0L
 
-/**
- * GdkPoint:
- * @x: the x coordinate of the point
- * @y: the y coordinate of the point
- *
- * Defines the x and y coordinates of a point.
- */
-struct _GdkPoint
-{
-  int x;
-  int y;
-};
-typedef struct _GdkPoint              GdkPoint;
-
 /**
  * GdkRectangle:
  * @x: the x coordinate of the top left corner
index c4a133afcc39874e3703f4ced05ba560341dc417..fd2ca53b269b5b82a030fb40456f11be00dd06fb 100644 (file)
@@ -32,6 +32,7 @@
 #include "gdkmacossurface-private.h"
 #include "gdkmacospopupsurface-private.h"
 #include "gdkmacostoplevelsurface-private.h"
+#include "gdkmacosutils-private.h"
 
 #include "gdkmonitorprivate.h"
 #include "gdksurfaceprivate.h"
index 8769ea7e47c2607083019844d17938de07a9bda6..b7ffd8a17608c9a75cfcb6b8138320233c037b15 100644 (file)
@@ -22,6 +22,7 @@
 #define __EDGE_SNAPPING_H__
 
 #include "gdktypes.h"
+#include "gdkmacosutils-private.h"
 
 G_BEGIN_DECLS
 
index 678982ba978d0b473edbe560257f201b68dcfc63..6b81fd28acc62c564da795129e3bbd5a1e2ae1c7 100644 (file)
@@ -33,4 +33,12 @@ queue_contains (GQueue *queue,
   return queue->head == link_ || link_->prev || link_->next;
 }
 
+struct _GdkPoint
+{
+  int x;
+  int y;
+};
+typedef struct _GdkPoint GdkPoint;
+
+
 #endif /* __GDK_MACOS_UTILS_PRIVATE_H__ */